/**
 * 
 */
package dms.service;

import java.util.List;

import dms.dto.ClassesDTO;
import dms.dto.FacultyDTO;
import dms.dto.SchoolDTO;
import dms.model.Classes;
import dms.model.Faculty;
import dms.model.School;
import dms.model.util.PageIterator;

/**
 * @author 李健
 *
 */
public interface SchoolService {
	
	PageIterator<School> findAllSchool(int start, int count);
	
	School findSchoolByName(String name, int start, int count);
	
	School findSchoolById(Long id);
	
	School createSchool(SchoolDTO schoolInfo);
	
	School updateSchool(SchoolDTO schoolInfo);
	
	void deleteSchoolById(Long id);
	
	void deleteSchools(List<Long> ids);
	
	Faculty createFaculty(FacultyDTO facultyInfo);
	
	Faculty updateFaculty(FacultyDTO facultyInfo);
	
	void deleteFacultyById(Long id);
	
	void deleteFaculties(List<Long> ids);
	
	PageIterator<Faculty> findFacultyBySchool(School school, int start, int count);
	
	Faculty findFacultyById(Long id);
	
	Classes createClasses(ClassesDTO classesInfo);
	
	Classes updateClasses(ClassesDTO classesInfo);
	
	void deleteClassesById(Long id);
	
	void deleteClasses(List<Long> ids);
	
	Classes findClassesById(Long id);
	
	PageIterator<Classes> findClassesByFaculty(Faculty faculty, int start, int count);
	
	PageIterator<Classes> findClassesByName(String name, int start, int count);
	
	
}
